FROM mcr.microsoft.com/dotnet/sdk:8.0

# 维护者
LABEL description="Guoling.ProjectName" maintainer="Guoling"

RUN sed -i 's/archive.ubuntu.com/mirrors.aliyun.com/g' /etc/apt/sources.list \
    && apt-get update \
    && apt-get install wget jq libgdiplus -y \
    && mkdir /product

WORKDIR /product

COPY ./product /product
COPY ./docker-entrypoint.sh /product

RUN chmod +x /product/docker-entrypoint.sh

ENTRYPOINT [ "/product/docker-entrypoint.sh", "/product/", "Guoling.ProjectName", "1" ]